package com.eva.admin.dao.system.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@ApiModel("系统部门视图")
public class SystemDepartmentVO implements Serializable {

    @ApiModelProperty(value="上级部门")
    private Integer id;

    @ApiModelProperty(value="上级部门")
    private Integer parentId;

    @ApiModelProperty(value="部门编码")
    private String code;

    @ApiModelProperty(value="部门名称")
    private String name;

    @ApiModelProperty(value="部门手机号码")
    private String mobile;

    @ApiModelProperty(value="部门手机号码摘要")
    private String mobileDigest;

    @ApiModelProperty(value="部门邮箱")
    private String email;

    @ApiModelProperty(value="部门邮箱摘要")
    private String emailDigest;

    @ApiModelProperty(value="用户数")
    private long userCount;

    @ApiModelProperty(value = "负责人ID")
    private Integer leaderId;

    @ApiModelProperty(value = "负责人姓名")
    private String leaderRealName;

    @ApiModelProperty(value="创建时间")
    private Date createdAt;

    @ApiModelProperty(value="更新时间")
    private Date updatedAt;

    @ApiModelProperty(value = "创建人ID")
    private Integer creatorId;

    @ApiModelProperty(value = "创建人姓名")
    private String creatorRealName;

    @ApiModelProperty(value = "更新人ID")
    private Integer updaterId;

    @ApiModelProperty(value = "更新人姓名")
    private String updaterRealName;

    @ApiModelProperty(value="子部门")
    private List<SystemDepartmentVO> children;
}
